package cqie.edu.bootexperiment3;

import com.baomidou.mybatisplus.core.conditions.AbstractWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import cqie.edu.bootexperiment3.domain.TCustomer;
import cqie.edu.bootexperiment3.mapper.TCustomerMapper;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.sql.SQLException;
import java.sql.Wrapper;

@SpringBootTest
public class test_delete {
    @Autowired
    TCustomerMapper tcustomermapper;

    @Test
    public void testDeletebyJob() {
        //229970608 何慧君
       QueryWrapper<TCustomer> qw = new QueryWrapper<TCustomer>();
       qw.eq("job", "程序员");
       tcustomermapper.delete(qw);
    }
}
